package com.ruoyi.project.system.response;

import com.ruoyi.project.system.entity.SysUser;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserTreeSelect implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 节点ID
     */
    private Long id;

    /**
     * 节点名称
     */
    private String label;

    public UserTreeSelect(SysUser user) {
        this.setId(user.getUserId());
        this.setLabel(user.getNickName());
    }
}
